package cn.tedu.sk.ex.handler;

import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandler {


    @ExceptionHandler
    public void loginException(BadCredentialsException e) {
        System.out.println("密码或账号错误！！！");
    }
}
